home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / g_quake / server1.zip / _SERVHLP.QC < prev    next >
Text File  |  1996-08-30  |  3KB  |  96 lines

  1. /*
  2. **
  3. ** _servhlp.qc (ServerHelp Code, 1.0)
  4. **
  5. ** Copyright (C) 1996 Johannes Plass
  6. ** 
  7. ** This program is free software; you can redistribute it and/or modify
  8. ** it under the terms of the GNU General Public License as published by
  9. ** the Free Software Foundation; either version 2 of the License, or
  10. ** (at your option) any later version.
  11. ** 
  12. ** This program is distributed in the hope that it will be useful,
  13. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. ** GNU General Public License for more details.
  16. **
  17. ** You should have received a copy of the GNU General Public License
  18. ** along with this program; if not, write to the Free Software
  19. ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. ** 
  21. ** Author:   Johannes Plass (plass@dipmza.physik.uni-mainz.de)
  22. **
  23. */
  24.  
  25. void(entity player) ServerHelpInit =
  26. {
  27.    if (!USE_MODULE_SERVERHELP) return;
  28.    stuffcmd(player,"alias help-server \"impulse 207\";\n");
  29. };
  30.  
  31. void(entity player) ServerHelpInfo =
  32. {
  33.    if (!USE_MODULE_SERVERHELP) return;
  34. //                123456789#123456789#123456789#12345678
  35.    sprint(player,"# ServerHelp: Type 'help-server' for\n");
  36.    sprint(player,"  help on server properties.\n");
  37. };
  38.  
  39. void(entity player) ServerHelpShowHelp =
  40. {
  41.    if (!USE_MODULE_SERVERHELP) return;
  42.    ServerHelpShowServerSettings(player);
  43.    sprint(player,"\n");
  44.    ModulesShowInfo(player);
  45. };
  46.  
  47. void(entity player) ServerHelpShowServerSettings =
  48. {
  49.    local float  num;
  50.    local string numstr;
  51.  
  52.    if (!USE_MODULE_SERVERHELP) return;
  53.    sprint(player, "### Server Settings:\n\n");
  54. //   num    = cvar("registered");
  55. //     numstr    = ftos(num);
  56. //     sprint(player, "  registered: ");
  57. //     sprint(player, numstr);
  58. //     sprint(player, "\n");
  59. //   num    = cvar("sys_ticrate");
  60. //     numstr    = ftos(num);
  61. //     sprint(player, "  sys_ticrate: ");
  62. //     sprint(player, numstr);
  63. //     sprint(player, "\n");
  64. //   num    = cvar("pausable");
  65. //     numstr    = ftos(num);
  66. //     sprint(player, "  pausable:   ");
  67. //     sprint(player, numstr);
  68. //     sprint(player, "\n");
  69.    num    = cvar("sv_aim");
  70.      numstr    = ftos(num);
  71.      sprint(player, "  sv_aim:     ");
  72.      sprint(player, numstr);
  73.      sprint(player, "\n");
  74.    num    = cvar("fraglimit");
  75.      numstr    = ftos(num);
  76.      sprint(player, "  fraglimit:  ");
  77.      sprint(player, numstr);
  78.      sprint(player, "\n");
  79.    num    = cvar("timelimit");
  80.      numstr    = ftos(num);
  81.      sprint(player, "  timelimit:  ");
  82.      sprint(player, numstr);
  83.      sprint(player, "\n");
  84.    num    = cvar("noexit");
  85.      numstr    = ftos(num);
  86.      sprint(player, "  noexit:     ");
  87.      sprint(player, numstr);
  88.      sprint(player, "\n");
  89.    num    = cvar("teamplay");
  90.      numstr    = ftos(num);
  91.      sprint(player, "  teamplay:   ");
  92.      sprint(player, numstr);
  93.      sprint(player, "\n");
  94. };
  95.  
  96.